Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[improve][broker] PIP-192: Make unload and transfer admin API functional #19538

Conversation

Demogorgon314
Copy link
Member

PIP-192: #16691

Motivation

Currently, the unload and transfer admin API still uses the old logic when enabling the ExtensibleLoadManager,
we need to publish the message to ServiceUnitStateChannel, and wait for its response.

Modifications

This PR added a UnloadManager to handle the duplicate unload request and return a CompletableFuture to the caller, so we can know when the unload operation is finished.

The unload and transfer admin API also been fixed, now we can support do unload when using ExtensibleLoadManager.

Documentation

  • doc
  • doc-required
  • doc-not-needed
  • doc-complete

Matching PR in forked repository

PR in forked repository: Demogorgon314#11

@Demogorgon314 Demogorgon314 self-assigned this Feb 16, 2023
@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Feb 16, 2023
@Demogorgon314
Copy link
Member Author

Waiting for #19525 merge.

@Demogorgon314 Demogorgon314 force-pushed the Demogorgon314/PIP-192-Make_unload_admin_API_functional branch from 6768fa6 to 3f62bd3 Compare February 17, 2023 15:20
@Demogorgon314 Demogorgon314 force-pushed the Demogorgon314/PIP-192-Make_unload_admin_API_functional branch from 3f62bd3 to 77bca64 Compare February 24, 2023 02:39
@Demogorgon314 Demogorgon314 marked this pull request as ready for review February 25, 2023 05:08
@Demogorgon314 Demogorgon314 marked this pull request as draft February 27, 2023 01:26
@Demogorgon314 Demogorgon314 marked this pull request as ready for review February 28, 2023 03:25
…I_functional

# Conflicts:
#	pulsar-broker/src/main/java/org/apache/pulsar/broker/loadbalance/extensions/channel/ServiceUnitStateChannelImpl.java
…I_functional

# Conflicts:
#	pulsar-broker/src/main/java/org/apache/pulsar/broker/loadbalance/extensions/channel/ServiceUnitStateChannelImpl.java
@Demogorgon314
Copy link
Member Author

@Technoboy- Ping. Please take a look at this PR, thinks!

@Demogorgon314 Demogorgon314 merged commit b2658af into apache:master Mar 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc-not-needed Your PR changes do not impact docs ready-to-test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants